package com.ccrfid.rmc6.entity.asset;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "asset_move")
public class AssetMoveEntity {
    private Long id;
    private Long assetId;
    private Long cardNumber;
    private Integer frontLocatorAddress;
    private Double frontX;
    private Double frontY;
    private Integer frontFloorNumber;
    private Integer currentLocatorAddress;
    private Double currentX;
    private Double currentY;
    private Integer currentFloorNumber;
    private Timestamp recordTime;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "asset_id", nullable = false)
    public Long getAssetId() {
        return assetId;
    }

    public void setAssetId(Long assetId) {
        this.assetId = assetId;
    }

    @Basic
    @Column(name = "card_number", nullable = false)
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "front_locator_address", nullable = true)
    public Integer getFrontLocatorAddress() {
        return frontLocatorAddress;
    }

    public void setFrontLocatorAddress(Integer frontLocatorAddress) {
        this.frontLocatorAddress = frontLocatorAddress;
    }

    @Basic
    @Column(name = "front_x", nullable = true)
    public Double getFrontX() {
        return frontX;
    }

    public void setFrontX(Double frontX) {
        this.frontX = frontX;
    }

    @Basic
    @Column(name = "front_y", nullable = true)
    public Double getFrontY() {
        return frontY;
    }

    public void setFrontY(Double frontY) {
        this.frontY = frontY;
    }

    @Basic
    @Column(name = "front_floor_number", nullable = true)
    public Integer getFrontFloorNumber() {
        return frontFloorNumber;
    }

    public void setFrontFloorNumber(Integer frontFloorNumber) {
        this.frontFloorNumber = frontFloorNumber;
    }

    @Basic
    @Column(name = "current_locator_address", nullable = true)
    public Integer getCurrentLocatorAddress() {
        return currentLocatorAddress;
    }

    public void setCurrentLocatorAddress(Integer currentLocatorAddress) {
        this.currentLocatorAddress = currentLocatorAddress;
    }

    @Basic
    @Column(name = "current_x", nullable = true)
    public Double getCurrentX() {
        return currentX;
    }

    public void setCurrentX(Double currentX) {
        this.currentX = currentX;
    }

    @Basic
    @Column(name = "current_y", nullable = true)
    public Double getCurrentY() {
        return currentY;
    }

    public void setCurrentY(Double currentY) {
        this.currentY = currentY;
    }

    @Basic
    @Column(name = "current_floor_number", nullable = true)
    public Integer getCurrentFloorNumber() {
        return currentFloorNumber;
    }

    public void setCurrentFloorNumber(Integer currentFloorNumber) {
        this.currentFloorNumber = currentFloorNumber;
    }

    @Basic
    @Column(name = "record_time", nullable = false)
    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }
}
